package com.sam.spring.chapter1;

import com.sam.spring.chapter1.helloworld.HelloAPI;
import com.sam.spring.chapter1.helloworld.HelloImpl2;

public class HelloAPIInstanceFactory {
	//实例工厂方法
	public HelloAPI newInstance(String message) {
		return new HelloImpl2(message);
	}
}
